<script setup>
import { reactive,onMounted ,onBeforeUnmount,h} from 'vue'
import { useRouter } from 'vue-router'
const router = useRouter()
const toNewTab = ()=>{
    router.push({ name: 'index' })
}



</script>

<template >
    
    <div>
        <button @click="toNewTab">跳转1</button>
        <h1>💖 Hello World!2</h1>
         <p>Welcome to your Electron application.</p>
    </div>
</template>